﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="AreaCompanyAdd.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.RelationQuery.AreaCompanyAdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" language="javascript">
     function insertGoodsInfo(goodsInfo) {
         var varGoodsInfo = goodsInfo.split('|');
         document.all.ctl00_ContentPlaceHolder1_companyId.value = varGoodsInfo[0];
         document.all.ctl00_ContentPlaceHolder1_txtCompany.value = varGoodsInfo[1];
     }    
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="maincon">
        <div id="note">
            地区配送企业添加 <span>*为必填项</span></div>
        <div id="note2">
        </div>
        <table>
            <tr>
                <th>
                    <asp:Label ID="Label1" runat="server" Text="所属区域："></asp:Label>
                </th>
                <td>
                    <asp:DropDownList ID="ddlProvice" runat="server">
                        <asp:ListItem Value="">所在省</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="ddlCity" runat="server">
                        <asp:ListItem Value="">所在城市</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="ddlCountry" runat="server">
                        <asp:ListItem Value="">所在区县</asp:ListItem>
                    </asp:DropDownList>
                    <asp:HiddenField ID="hfdAreaId" runat="server" />
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lblChildUserName" runat="server" Text="配送企业："></asp:Label>
                </th>
                <td align="left">
                <asp:Label runat="server" ID="lblCompany"></asp:Label>
<%--                    <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>
                    <input id="companyId" type="hidden" name="companyId" runat="server" />
                    <input id="btnSelectCompany" type="button" style="width: 35px" value="选择" onclick="window.open('../../Enterprise/RelationQuery/CompanySelect.aspx','SelectCompany','width=600,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')"
                        class="btn" />--%>
                </td>
            </tr>
        </table>
    </div>
    <div class="listip">
        <ul>
            <li>说明：</li>
            <li>1、所有地区增加，设置当前企业可配送区域全区</li>
            <li>2、增加区域选择到县则增加选择的县，如果选择的是市则所选市下的所有区县都增加</li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnAllAdd" runat="server" Text="全部地区新增" CssClass="btn" OnClick="btnAllAdd_Click"
            Width="97px"  Visible="false"/>
        &nbsp;&nbsp;&nbsp;
        <hz:HzButton ID="btnAdd" runat="server" Text="新增" OnClick="btnAdd_Click" CssClass="btn" />
    </div>

    <script type="text/javascript" language="javascript">
        new PCAS("ctl00$ContentPlaceHolder1$ddlProvice", "ctl00$ContentPlaceHolder1$ddlCity", "ctl00$ContentPlaceHolder1$ddlCountry" <%=GetDefaultAreaString() %> );
    </script>

</asp:Content>
